package cn.edu.bcu.ls.serviceImpl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import cn.edu.bcu.ls.entity.Adv;
import cn.edu.bcu.ls.mapper.AdvMapper;
import cn.edu.bcu.ls.service.AdvService;

import java.util.List;

@Service
public class AdvServiceImpl implements AdvService{

    @Resource
    private AdvMapper advMapper;

    @Override
    public int deleteByPrimaryKey(Integer advId) {
        return advMapper.deleteByPrimaryKey(advId);
    }

    @Override
    public int insert(Adv record) {
        return advMapper.insert(record);
    }

    @Override
    public int insertSelective(Adv record) {
        return advMapper.insertSelective(record);
    }

    @Override
    public List<Adv> selectByPrimaryKey(Integer advId) {
        return advMapper.selectByPrimaryKey(advId);
    }

    @Override
    public int updateByPrimaryKeySelective(Adv record) {
        return advMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Adv record) {
        return advMapper.updateByPrimaryKey(record);
    }

}
